package com.nami.store.biz.grphismsgs.convert;

import com.nami.store.api.response.message.MessageDTO;
import com.nami.store.domain.GrpHisMsgsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface GrpMsgsConvert {

    GrpMsgsConvert INSTANCE = Mappers.getMapper(GrpMsgsConvert.class);

    MessageDTO convert(GrpHisMsgsDO grpHisMsgsDO);

    List<MessageDTO> convertList(List<GrpHisMsgsDO> grpHisMsgs);

}
